home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1160 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: hgmp.mrc.ac.uk!news
  2. From: Mark Bradburn <m-bradbu@nimr.mrc.ac.uk>
  3. Newsgroups: comp.lang.c++
  4. Subject: Simple program-but not for me!!HELP.
  5. Date: 9 Jan 1996 17:45:26 GMT
  6. Organization: Medical Research Council
  7. Message-ID: <4cu9jm$s8h@mercury.hgmp.mrc.ac.uk>
  8. NNTP-Posting-Host: lysine.nimr.mrc.ac.uk
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.1N (X11; I; IRIX 5.3 IP22)
  13. X-URL: news:comp.lang.c++
  14.  
  15. I have an output file from a program that comes in the form:-
  16.  
  17. 'Sequence = name1, Structure = name2, SCORE = xxx.xx
  18.     "             name2      "             othername1,       "
  19.    "              othername1   "        othername2,       "
  20. etc.'
  21.  
  22. What i need to do is extract the scores values from each line,sort them
  23. according to (name
  24.  with name,name with othername,othername with othername) then write the
  25. sum,mean and sd for each to seperate files.How is the easiest way to do
  26. this,bearing in mind i am just about competent with while (if) and other loop
  27. commands and am virtually lost with 'for' statements.
  28.  
  29.     Thanks in advance for any help..
  30.  
  31.     -Mark
  32. -- 
  33. --------------------------------------------------------------------------------
  34. Mark Bradburn, Mathematical Biology, N.I.M.R ,London UK   NW7 1AA
  35. http://www.nimr.mrc.ac.uk/~m-bradbu || 'talk m-bradbu@iris4.nimr.mrc.ac.uk' 
  36. E-mail: m-bradbu@nimr.mrc.ac.uk       || Phone: 0181 9593666 ext.2396
  37.  
  38.